// 初始化仓库
// 1. 导入一个方法 生成仓库实例
import {createStore, combineReducers} from 'redux'
import {counter} from './reducers/countReducer'
import {personReducer} from './reducers/personReducer'



let reducers = combineReducers({

  // 在组件中 state点出的东西 就是这里面写的
  counter, personReducer
});


//3:将纯函数 放到 createStore参数中
let store = createStore(reducers);

window.store = store;

export default store;

